import 'dart:convert';

import 'package:flutter_bilibili/http/core/fw_net.dart';
import 'package:flutter_bilibili/http/request/base_request.dart';
import 'package:flutter_bilibili/http/request/news_request.dart';
import 'package:flutter_bilibili/model/news_model.dart';

class NewsDao{
  static Future<List<NewsModel>> fetchMovie() async {
    BaseRequest request = NewsRequest();
    var result = await FwNet.getInstance().call(request);
    return NewsModelFromJson(json.encode(result["result"]));
  }
}